//===============================================================================
// Microsoft Architecture Strategy Team
// LitwareHR - SaaS Sample Application
//===============================================================================
// Copyright  Microsoft Corporation.  All rights reserved.
// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY
// OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT
// LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
// FITNESS FOR A PARTICULAR PURPOSE.
//===============================================================================
// The example companies, organizations, products, domain names,
// e-mail addresses, logos, people, places, and events depicted
// herein are fictitious.  No association with any real company,
// organization, product, domain name, email address, logo, person,
// places, or events is intended or should be inferred.
//===============================================================================


namespace Shp.Runtime.DataModel.Sitka.Constants
{
    internal static class SitkaMetadataQueries
    {
        internal const string GetEntityDefByName = @"where e.Kind==""EntityDef"" && e[""Name""]==""{0}""";
        internal const string GetTenantByAlias = @"where e[""Alias""]==""{0}""";
        internal const string GetEntityDefList = @"where e.Kind==""EntityDef""";
        internal const string GetViewDefList = @"where e.Kind==""ViewDef""";
        internal const string GetTypeList = @"where e.Kind==""Type""";
        internal const string GetInstancesFields = @"where e[""Id""]==""{0}""";
        internal const string GetEntityDefFields = @"where e.Kind==""EntityDefField"" && e[""EntityDefId""]==""{0}"" && e[""TenantId""]==""{1}""";
        internal const string GetViewDefFields = @"where e.Kind==""ViewDefField"" && e[""ViewDefId""]==""{0}"" && e[""TenantId""]==""{1}""";
        internal const string GetEntityDefByTenant = @"where e.Kind==""{0}"" && e[""TenantId""]==""{1}""";
        internal const string GetTenants = @"where e.Kind==""Tenant""";        
    }
}
